package com.neu.his.controller.RegistFee02;

import com.neu.his.bo.regist.*;
import com.neu.his.core.Result;
import com.neu.his.service.registFee02.RegistService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@CrossOrigin
@RequestMapping("/registration")
public class RegistController {
    @Autowired
    private RegistService registService;
    @PostMapping
    public Result RegistPost(@RequestBody RegistPostRec registPostRec){
        return registService.RegistPost(registPostRec);
    }

    @PutMapping("/dept")
    public Result RegistPostDept(@RequestBody RegistDept registDept){
        return registService.RegistPostDept(registDept);
    }

    @GetMapping
    public Result RegistGet(){
        return registService.RegistGet();
    }

    @PutMapping("/pay")
    public Result RegistPay(@RequestBody RegistPay registPay){
        return registService.RegistPay(registPay);
    }


}
